package com.study.happystudy.mapper;

import com.study.happystudy.po.FriendshipList;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FriendshipMapper {
     List<FriendshipList> getFriendshipListById(int uid, String status);//根据用户id查询好友列表
     List<FriendshipList> getFriendshipAskList(int uid);//根据用户id查询好友申请列表

     int addFriendship(int uid1,int uid2);//添加好友关系

     int updateFriendshipStatus(int friendshipId,String status);//更新好友关系状态
}
